package org.zhucy.design.factory;

import javax.enterprise.inject.Produces;

/**
 * @Auther: zhuchunyang
 * @Date: 2019/6/26 16:50
 * @Description:
 */
public class AnnotationFactory {

    @Produces @Annotation
    private Green greenFactory(){
        return new Green();
    }

    @Produces
    private Red redFactory(){
        return new Red();
    }
}
